package domein;

import java.util.HashMap;
import java.util.Map;

public class Continent {

	private domein.Land lnkLand;
	private String idContinent;
	private String naamContinent;
	private Map<String, Land> landen;
	
	// Constructor(s)
	
	public Continent(String idContinent, String naamContinent)
	{
		setNaamContinent(naamContinent);
		setIDContinent(idContinent);
		setLanden(new HashMap<String, Land>());
	}
	
	// Getters en Setters
	
	public String getIDContinent() 
	{
		return idContinent;
	}

	public void setIDContinent(String idContinent) 
	{
		this.idContinent = idContinent;
	}

	public String getNaamContinent() 
	{
		return naamContinent;
	}

	public void setNaamContinent(String naamContinent) 
	{
		this.naamContinent = naamContinent;
	}

	public Map<String, Land> getLanden() 
	{
		return landen;
	}

	public void setLanden(Map<String, Land> landen) 
	{
		this.landen = landen;
	}
	
	// Overige Methodes
	
	public void voegLandToeAanContinent(Land land)
	{
		landen.put(land.getNaamLand(), land);
	}
}
